/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var porcentagemAltura = 0.35; 
var slide;

$(document).ready(function(){
    blocosInteligentes()
               
    slide = $('.galeria-top-loader-page').bxSlider({
        controls: false,
        displaySlideQty: 7,
        moveSlideQty: 1,
        pause: 5000,
        auto: true
    });
               
    $(window).resize(function(){
        //$("#galeria-controles").fadeOut("slow");
        //slide.stopShow();
        blocosInteligentes();
        });

    $('#galeria-voltar').click(function(){
        slide.goToPreviousSlide();
        return false;
    });

    $('#galeria-avancar').click(function(){
        slide.goToNextSlide();
        return false;
    });



});
            
            

function blocosInteligentes() {
                
    var larguraMonitor = $(window).width(); //sem px
    var alturaMonitor = $(window).width(); //sem px
                
    $(".galeria-top-page").width(larguraMonitor);
//    $(".galeria-top-page").height(alturaMonitor * porcentagemAltura);
//$(".galeria-top-loader-page").width(larguraMonitor);
//$(".galeria-top-imagem-page").width(larguraMonitor);
                
//$(".galeria-top-loader").css("left", 0);
//$(".galeria-top .bx-wrapper").width(larguraMonitor);
//$(".galeria-top .bx-wrapper .bx-window").width(larguraMonitor);
                
                
}

